package com.personnel.dao;

import java.sql.SQLException;
import java.util.List;


import com.personnel.entity.YgUser;

public interface IYgUserDao {
	//添加员工表
	boolean addYgUser(YgUser yg) throws SQLException;
	//修改员工表
	boolean updateYgUser(YgUser yg);
	//删除员工表
	boolean deleteYgUser(int y_id);
	
	
	public int count() throws SQLException;
	//查询所有员工
	List <YgUser> queryAllYgUsers(int curPage,int count) throws Exception ;
	//根据编号查员工
	YgUser queryYgUserById(int y_id);
	
}
